package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.math.BigDecimal;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-07-17  17:16
 * @Description: 车辆评估的这条数据的实体
 */
public class EvaluteCurrentItemBean implements Parcelable {

//    {
//        "accident": 0,
//            "accidentName": "",
//            "address": "",
//            "brandId": 5,
//            "brandName": "大众",
//            "carBrandId": 0,
//            "carBrandName": "",
//            "carColor": "",
//            "carName": "奥迪A6普通款",
//            "carSeriesId": 0,
//            "carSeriesName": "",
//            "createTime": "2023-08-08 17:19:03",
//            "customerId": 0,
//            "customerImg": "",
//            "customerImgs": [],
//        "customerName": "李梦",
//            "customerPhone": "1586970804",
//            "estimateId": 57,
//            "estimateType": 4,
//            "estimateTypeName": "到店评估",
//            "files": [],
//        "isDelete": 0,
//            "isSend": 0,
//            "maxPrice": 0,
//            "mileage": 0,
//            "minPrice": 0,
//            "priceRemark": "",
//            "priceType": 2,
//            "receptionId": 62962,
//            "receptionImg": "",
//            "receptionImgs": [],
//        "receptionName": "",
//            "remark": "",
//            "seriesId": 5,
//            "seriesName": "大众Fox",
//            "shopInfoId": 1495,
//            "shopName": "众诚上汽大众",
//            "status": 1,
//            "statusName": "已分配",
//            "urlPrefix": "",
//            "vehicleName": "",
//            "wade": 0,
//            "wadeName": ""
//       "estimateId": 151,
//               "estimateType": 4,
//    }
//

    //车辆评估的人员的名称
    private String customerName;

    //车辆客户的人员手机号
    private String customerPhone;

    //车辆评估的类型  数字格式 上门评估 到店评估 在线评估等，各自提交的详情不同
    private String estimateType;

    //车辆的评估名称 文字形式
    private String estimateTypeName;

    //该信息的分配状态 数字形式
    private String status;
    //分配状态的  文字形式
    private String statusName;

    //创建的时间
    private String createTime;

    //车辆型号
    private String carName;

    //价格的类型
    private String priceType;

    //评估的最低价格
    private BigDecimal minPrice;
    //评估的最高价格
    private BigDecimal maxPrice;

    //评估的id
    private String estimateId;
    //评估的类别
//    private String  estimateType;

    //是否是具备分配人员权限
    private int isSend;

    public int getIsSend() {
        return isSend;
    }

    public void setIsSend(int isSend) {
        this.isSend = isSend;
    }

    public String getEstimateId() {
        return estimateId;
    }

    public void setEstimateId(String estimateId) {
        this.estimateId = estimateId;
    }

    public BigDecimal getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice;
    }

    public BigDecimal getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public String getEstimateType() {
        return estimateType;
    }

    public void setEstimateType(String estimateType) {
        this.estimateType = estimateType;
    }

    public String getEstimateTypeName() {
        return estimateTypeName;
    }

    public void setEstimateTypeName(String estimateTypeName) {
        this.estimateTypeName = estimateTypeName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.customerName);
        dest.writeString(this.customerPhone);
        dest.writeString(this.estimateType);
        dest.writeString(this.estimateTypeName);
        dest.writeString(this.status);
        dest.writeString(this.statusName);
        dest.writeString(this.createTime);
        dest.writeString(this.carName);
        dest.writeString(this.priceType);
        dest.writeSerializable(this.minPrice);
        dest.writeSerializable(this.maxPrice);
        dest.writeString(this.estimateId);
        dest.writeInt(this.isSend);
    }

    public void readFromParcel(Parcel source) {
        this.customerName = source.readString();
        this.customerPhone = source.readString();
        this.estimateType = source.readString();
        this.estimateTypeName = source.readString();
        this.status = source.readString();
        this.statusName = source.readString();
        this.createTime = source.readString();
        this.carName = source.readString();
        this.priceType = source.readString();
        this.minPrice = (BigDecimal) source.readSerializable();
        this.maxPrice = (BigDecimal) source.readSerializable();
        this.estimateId = source.readString();
        this.isSend = source.readInt();
    }

    public EvaluteCurrentItemBean() {
    }

    protected EvaluteCurrentItemBean(Parcel in) {
        this.customerName = in.readString();
        this.customerPhone = in.readString();
        this.estimateType = in.readString();
        this.estimateTypeName = in.readString();
        this.status = in.readString();
        this.statusName = in.readString();
        this.createTime = in.readString();
        this.carName = in.readString();
        this.priceType = in.readString();
        this.minPrice = (BigDecimal) in.readSerializable();
        this.maxPrice = (BigDecimal) in.readSerializable();
        this.estimateId = in.readString();
        this.isSend = in.readInt();
    }

    public static final Parcelable.Creator<EvaluteCurrentItemBean> CREATOR = new Parcelable.Creator<EvaluteCurrentItemBean>() {
        @Override
        public EvaluteCurrentItemBean createFromParcel(Parcel source) {
            return new EvaluteCurrentItemBean(source);
        }

        @Override
        public EvaluteCurrentItemBean[] newArray(int size) {
            return new EvaluteCurrentItemBean[size];
        }
    };
}
